package com.n5x.model.goods;

import com.n5x.model.AbstractModel;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;
import java.util.List;

public class GoodsInfo extends AbstractModel {

    public static final String ORDER_FIELD_CREATE_TIME = "GOODS_INFO.CREATE_TIME DESC ";

    /**
     * 商品名称
     */
    private String name;

    private String sType;
    /**
     * 商品图片
     */
    private String picture = "";

    /**
     * 商品缩略图
     */
    private String thumbnail = "";

    private String video;

    /**
     * 商品单价
     */
    private BigDecimal price = new BigDecimal(0);

    /**
     * 商品优惠价
     */
    private BigDecimal preferentialPrice = new BigDecimal(0);

    /**
     * 商品库存
     */
    private Integer qty = 0;

    /**
     * 商品介绍
     */
    private String content;

    /**
     * 显示组别名称数组
     */
    @Transient
    private List<String> groupNames;

    /**
     * 显示商品类型数组
     */
    @Transient
    private List<GoodsType> goodsTypes;

    private String codeId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getsType() {
        return sType;
    }

    public void setsType(String sType) {
        this.sType = sType;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPreferentialPrice() {
        return preferentialPrice;
    }

    public void setPreferentialPrice(BigDecimal preferentialPrice) {
        this.preferentialPrice = preferentialPrice;
    }

    public Integer getQty() {
        return qty;
    }

    public void setQty(Integer qty) {
        this.qty = qty;
    }

    public String getCodeId() {
        return codeId;
    }

    public void setCodeId(String codeId) {
        this.codeId = codeId;
    }

    private String sContent;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<String> getGroupNames() {
        return groupNames;
    }

    public void setGroupNames(List<String> groupNames) {
        this.groupNames = groupNames;
    }

    public List<GoodsType> getGoodsTypes() {
        return goodsTypes;
    }

    public void setGoodsTypes(List<GoodsType> goodsTypes) {
        this.goodsTypes = goodsTypes;
    }

    public String getsContent() {
        return sContent;
    }

    public void setsContent(String sContent) {
        this.sContent = sContent;
    }
}